package com.yz.common.constant;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * <p>
 * User:Mr.Du
 * Date:2024/3/18
 * Time:17:12
 */
public class CacheConstants {

    /**
     * 验证码缓存时间
     */
    public final static Long VERIFY_CODE_EXPIRATION = 300L;

    /**
     * 缓存刷新时间，默认30（分钟）
     */
    public final static Long REFRESH_TIME = 30 * 60L;

    /**
     * 缓存有效期，默认120（分钟）
     */
    public final static Integer EXPIRATION = 2 * 60 * 60;

    public final static Long TEST_EXPIRATION = 30 * 24 * 60 * 60L;

    public final static Integer TEST_EXPIRATION_TIME = 30;

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "verify_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_USER_KEY = "user_login:";

    public static final Integer LOCK_TIMEOUT = 1800;

}
